package com.ocom.common.vo.payconfig;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class AddCouponsDataVo implements Serializable {

    @NotNull(message = "单位编号不能为空")
    private Long comId;

    @NotNull(message = "订单号不能为空")
    private String orderNo;

    private Long deptId;

    @JsonProperty(value = "pTags")
    private String tag;
    @JsonProperty(value = "itemName")
    private String itemName;
    @JsonProperty(value = "pCode")
    private String pCode;

    @JsonProperty(value = "pName")
    private String pName;

    @JsonProperty(value = "accType")
    private String accType;

    @JsonProperty(value = "voucherNumber")
    @NotNull(message = "数量不能为空")
    @Min(value = 1,message = "优惠券最小值为1")
    @Max(value = 999999,message = "优惠券最大为999999")
    private int voucherNumber;

    private List<Long> pIds;

}
